﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AgentesPublico.aspx.cs" Inherits="WebApplication1.AgentesPublico" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxNewsControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridLookup" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            height: 10px;
        }
        .style7
        {
            height: 36px;
        }
        .style8
        {
            width: 129px;
            height: 29px;
        }
        .style9
        {
            height: 29px;
            width: 178px;
        }
        .style10
        {
            width: 323px;
        }
        .style12
        {
            width: 178px;
        }
        .style13
        {
            width: 129px;
        }
        .style14
        {
            height: 23px;
        }
        .style15
        {
            height: 28px;
        }
    </style>
     <script type="text/javascript">
    // <![CDATA[
         var curTailElement = null;
         var loadingDivText = '<div style="vertical-align: middle; text-align: center;">Loading&hellip;</div>';
         function OnTailClick(newsID, htmlElement) {
             if (!NewsCallback.InCallback() && !IsCurrentNews(htmlElement)) {
                 curTailElement = htmlElement;
                 ShowPopup(htmlElement, loadingDivText);
                 NewsCallback.PerformCallback(newsID);
             }
         }
         function OnCallbackComplete(result) {
             if (GetPopupControl().IsVisible())
                 ShowPopup(curTailElement, result);
         }
         function OnNewsControlBeginCallback() {
             GetPopupControl().Hide();
         }
         function IsCurrentNews(htmlElement) {
             return (curTailElement == htmlElement) && GetPopupControl().IsVisible();
         }
         function GetPopupControl() {
             return ASPxPopupClientControl;
         }
         function ShowPopup(element, contentText) {
             GetPopupControl().Hide();
             GetPopupControl().SetContentHTML(contentText);
             GetPopupControl().ShowAtElement(element);
         }
         function ShowCreateAccountWindow() {
             pcCreateAccount.Show();
             tbUsername.Focus();
         }

         var keyValue;
         function OnMoreInfoClick(element, key) {
             callbackPanel.SetContentHtml("");
             popup.ShowAtElement(element);
             keyValue = key;
         }
         function popup_Shown(s, e) {
             callbackPanel.PerformCallback(keyValue);
         }
    // ]]> 
    </script>
    <script type="text/javascript" charset="utf-8">
        $(document).ready(function () {
            $("a[rel^='prettyPhoto']").prettyPhoto();
        });
</script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/Office2010Silver/{0}/styles.css"
        CssPostfix="Office2010Silver" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
        GroupBoxCaptionOffsetY="-19px" SpriteCssFilePath="~/App_Themes/Office2010Silver/{0}/sprite.css"
        Width="95%" HeaderText="ENCUENTRE AGENTES" Theme="Office2003Silver">
        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
        <HeaderStyle>
            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
    
    <table style="width:100%;">
        <tr>
            <td colspan="2" class="style2">
                Agentes de Danza<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager></td>
          
        </tr>
        <tr>
            <td colspan="2">
                <dx:ASPxPopupControl PopupAction="None" ClientInstanceName="ASPxPopupClientControl"
                    PopupHorizontalAlign="OutsideRight" EnableViewState="False" ID="ASPxPopupControl1"
                    runat="server" PopupHorizontalOffset="5" AllowDragging="True" EnableAnimation="False"
                    PopupVerticalAlign="TopSides" CloseAction="CloseButton" 
                    HeaderText="Details" Theme="Office2003Silver">
                </dx:ASPxPopupControl>
                <dx:ASPxNewsControl ID="ASPxNewsControl1" runat="server" DataSourceID="SqlDataSourceDescripcion"
                    Width="100%" HeaderTextField="ENT_NOMBRE" NavigateUrlField="ENT_ID" TextField="ENT_RESENA"
                    ImageUrlField="ENT_IMAGEN" NavigateUrlFormatString="javascript:void('{0}');"
                    PagerAlign="Center" NameField="ENT_ID" RowPerPage="1">
                    <Items>
                        <dx:NewsItem HeaderText="Corporación Fomento de la Música" Name="34472" NavigateUrl="34472"
                            Text="LA CORPORACION FOMENTO DE LA MUSICA SE CREO EN EL AÑO DE 1995, CON EL LEGADO DE INSTRUMENTOS Y PARTITURAS ENTRE OTROS ACTIVOS DE LA DESAPARECIDA ORQUESTA SINFONICA DE ANTIOQUIA, TENIENDO COMO SEDE EL TEATRO METROPOLITANO DE MEDELLIN. LA CORPORACION ES UNA ENTIDAD SIN ANIMO DE LUCRO. ENFOCADA A LA FORMACION DE MUSICOS INTEGRALMENTE PARA CONTRIBUIR AL DESARROLLO DEL INDIVISUO COMO SER SENSIBLE Y CRATIVO.
">
                            <Image Url="Archivos/IMG2.jpg">
                            </Image>
                        </dx:NewsItem>
                    </Items>
                    <ItemSettings ShowImageAsLink="True" MaxLength="220" TailText="Detalles">
                    </ItemSettings>
                    <PagerSettings CurrentPageNumberFormat="{0}" NumericButtonCount="6">
                        <NextPageButton Visible="True">
                        </NextPageButton>
                        <PrevPageButton Visible="True">
                        </PrevPageButton>
                    </PagerSettings>
                    <ClientSideEvents TailClick="function(s, e) { OnTailClick(e.name, e.htmlElement); }"
                        BeginCallback="function(s, e) { OnNewsControlBeginCallback(); }" />
                </dx:ASPxNewsControl>
                 <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="NewsCallback"
                    OnCallback="ASPxCallback1_Callback">
                    <ClientSideEvents CallbackComplete="function(s, e) { OnCallbackComplete(e.result); }" />
                </dx:ASPxCallback>
                <asp:SqlDataSource ID="SqlDataSourceDescripcion" runat="server" ConnectionString="<%$ ConnectionStrings:SIPAConnectionString %>"
                    SelectCommand="SELECT ART_ENTIDADES_ARTES.ENT_NOMBRE, 
('Archivos/' + ISNULL(ART_ENTIDADES_ARTES.ENT_IMAGEN,'IMG1.JPG') ) AS ENT_IMAGEN,
ART_ENTIDADES_ARTES.ENT_RESENA, 
ART_ENTIDADES_ARTES.ENT_ID 
FROM ART_ENTIDADES_ARTES INNER JOIN ART_ENTIDAD_ACTIVIDAD ON ART_ENTIDADES_ARTES.ENT_ID = ART_ENTIDAD_ACTIVIDAD.ENT_ID 
WHERE (ART_ENTIDAD_ACTIVIDAD.TEA_ID = 13)"></asp:SqlDataSource>
                
                &nbsp;</td>
        </tr>
      
          <tr>
            <td colspan="2" class="style7">
                BÚSQUEDA DE AGENTES DE DANZA</td>
        </tr>
          <tr>
            <td class="style13" >
                Departamento&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;             
                </td>
               <td class="style12" >
                <dx:ASPxComboBox ID="ddlAgeDepartamentos" runat="server" Height="22px" Width="180px" 
                    style="margin-right: 0px" AutoPostBack="True" 
                       IncrementalFilteringMode="Contains" 
                       onselectedindexchanged="ddlAgeDepartamentos_SelectedIndexChanged" 
                       Theme="Office2003Silver">
                </dx:ASPxComboBox> 
               </td>
        </tr>
          <tr>
            <td class="style13" >
                Municipio&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
               <td class="style12" >
                <dx:ASPxComboBox ID="ddlAgeMunicipio" runat="server" ValueType="System.String" 
                       style="margin-bottom: 0px" IncrementalFilteringMode="Contains" 
                       Theme="Office2003Silver" Height="22px" Width="180px">
                </dx:ASPxComboBox>
               </td>
        </tr>
            <tr>
            <td class="style8" >
                Nombres y Apellidos&nbsp;             
                </td>
               <td class="style9" >
                   <dx:ASPxTextBox ID="txtAgeNombreApellido" runat="server" Theme="PlasticBlue" Height="22px"
                       Width="180px">
                   </dx:ASPxTextBox>
                </td>
        </tr>
                           
            <tr>
            <td colspan="2">
                <dx:ASPxButton ID="btnAgeBuscar" runat="server" Text="PULSAR" 
                    onclick="btnAgeBuscar_Click" Theme="Office2003Silver">
                </dx:ASPxButton>
                </td>
                <tr>
                <td class="style14"></td>
                </tr>
                <tr>
                    <td colspan="2" class="style15">
                        AGENTES ENCONTRADOS</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <dx:ASPxGridView ID="GridAgentesPublico" runat="server" 
                            AutoGenerateColumns="False" Theme="Office2003Silver" Width="920px" 
                            KeyFieldName="AGE_ID" onrowcommand="GridAgentesPublico_RowCommand">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="Id" FieldName="AGE_ID" VisibleIndex="0">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Departamento" FieldName="Departamento" VisibleIndex="2">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Nombres" VisibleIndex="1" FieldName="AGE_NOMBRES_APELLIDOS">
                                    <DataItemTemplate>
                                     <table>
                                          <tr>
                                           <td>
                                                                    
                                              <asp:linkbutton id="lnkEjecucion" runat="server" 
                                                        commandname="cmdEjecucion"><%#Eval("AGE_NOMBRES_APELLIDOS")%></asp:linkbutton> 
                                           </td>
                                          </tr>
                                     </table>
                                     </DataItemTemplate>
                                     <CellStyle Wrap="True">
                                     </CellStyle>
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Area" FieldName="AREA" VisibleIndex="6">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Correo Electronico" FieldName="AGE_CORREO_ELECTRONICO" VisibleIndex="5">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Pagina Web" FieldName="AGE_PAGINA_WEB" VisibleIndex="7">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="Genero" FieldName="AGENTES.AGE_GENERO" VisibleIndex="4">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="Municipio" VisibleIndex="3"> 
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                        </dx:ASPxGridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    
                        </td>
                </tr>
                <tr>
                    <td colspan="2">
                    
                        <dx:ASPxRoundPanel ID="ASPxRoundPanelAgentes" runat="server" BackColor="White" 
                            EnableTheming="true" color="Black" Width="920px" 
                            HeaderText="Detalle Agentes" Theme="Office2003Silver">
                        <HeaderStyle BackColor="#DEDEDE">
                        <BorderLeft BorderStyle="None" />
                        <BorderRight BorderStyle="None" />
                        <BorderBottom BorderStyle="None" />
                        </HeaderStyle>

                            <PanelCollection>
                                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                  <table style="width:100%;">
                                    <tr> 
                                    <td class="style10">
                        Nombres y Apellidos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_NOMBRES_APELLIDOS" runat="server">
                        </dx:ASPxLabel>
                    </td>
                    </tr>
                    <tr>
                    <td class="style10">
                        Género&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_GENERO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Tipo de Documento de Identidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_TIPO_DOCUMENTO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Número del Documento de Identidad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_NUMERO_DOCUMENTO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Minoría Étnica&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_MINORIA_ETNICA" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Pais&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_PAIS" runat="server">
                        </dx:ASPxLabel>
                    </td>
                     <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_OTRA_CIUDAD_UBICACION" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Departamento&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_DEPARTAMENTO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Municipio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_MUNICIPIO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Area&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_AREA" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Dirección&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_DIRECCION" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Número de Telefono&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_TELEFONO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Número de Celular&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_CELULAR" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Dirección de Correo Electronico&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_CORREO_ELECTRONICO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Sitios Web&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_PAGINA_WEB" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Areas Artisticas o Culturales&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_AREA_ARTISTICA" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Formación&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_FORMACION" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Nivel Educativo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_NIVEL_EDUCATIVO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Titulo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_TITULO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Año&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_ANO_TITULO" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="style10">
                        Entidad Educativa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td class="style12">
                        <dx:ASPxLabel ID="lblAGE_ENTIDAD_EDUCATIVA" runat="server">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                                </table>
                                </dx:PanelContent>
                            </PanelCollection>

                        </dx:ASPxRoundPanel>
                    
                        </td>
                </tr>
                
                
        </tr>
            </table>
        </ContentTemplate>
                </asp:UpdatePanel>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
    
</asp:Content>
